<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     <div class="box">
       
        <li><div class="scc"></div></li>
        <li><div class="scc"></div></li>
        <li><div class="scc"></div></li>
        <li><div class="scc"></div></li>
        <li><div class="scc"></div></li>
        <li><div class="scc"></div></li>
        <li><div class="scc"></div></li>
     </div>
     
</body>
</html>
<style>
    *{
        list-style: none;
        
    }
    .box{
        margin:  auto;
        width: 500px;
        height: 200px;
        border: 1px red solid;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    li{
        width: 20%;
        background-image: url(./1.jpg);
        height: 45%;
        background-size: 100%;
        border: 1px solid #0003;'0-';
    }
    .scc{
        height: 100%;
        width: 100%;
        background: #ffffff88;
    }
</style>